<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
  <link rel="shortcut icon" href="favicon.ico" type="image/x-icon"/>
  <?php if(empty($title)): ?><title>Notice - QSC</title>
  <?php else: ?>
  <title>$title</title><?php endif; ?>
  
  <meta name="description" content="Notice"/>
  <meta name="keywords" content="QSC,求是潮,Notice"/>
  <link rel="stylesheet" type="text/css" href="__PUBLIC__/css/common.css" media="all">
  <script type="text/javascript" src="__PUBLIC__/js/jquery.min.js"></script>
  



<link rel="stylesheet" type="text/css" href="__PUBLIC__/css/user.css" media="all">
<script type="text/javascript" src="__PUBLIC__/js/jquery-ui.all.min.js"></script>

<script type="text/javascript">
  $(function() {
    $('div.section-top').tabs({
      
    });
  })
</script>

  <link rel="stylesheet" type="text/css" href="__PUBLIC__/js/fancybox/jquery.fancybox.css" media="all">
  <script type="text/javascript" src="__PUBLIC__/js/fancybox/jquery.fancybox.pack.js"></script>
  
  <script type="text/javascript" src="__PUBLIC__/js/notice.dock.js"></script>
  <link rel="stylesheet" type="text/css" href="__PUBLIC__/css/srtp.css" media="all">
  <script>
	function setTab(n){
      var tli=document.getElementById("tags").getElementsByTagName("div");  
      var mli=document.getElementById("tagcontents").getElementsByTagName("div");  
      for(i=0;i<tli.length;i++){  
      tli[i].className=i==n?"taghover":"nothover";  
      mli[i].style.display=i==n?"block":"none";  
      } 
    }  
  </script>
</head>
<body>
	<div id="topbar">
		<div id="topbar_sub">
		<div id="topbar_info" class="clearfix">
			<a href = "http://www.qsc.zju.edu.cn/" target="_blank">求是潮</a>
			<p>|</p>
			<a href = "http://www.qsc.zju.edu.cn/share" target="_blank">Share学习交流平台</a>
			<a href = "http://www.qsc.zju.edu.cn/bubble" target="_blank">Bubble Music泡音乐</a>
			<a href = "__APP__">Notice</a>
		</div>
		<div id="topbar_link" class="clearfix">
			<?php if(empty($self)): ?><a href = "<?php echo U('account/login');?>" class="btn">登录</a>
			<a href = "<?php echo U('account/register');?>" class = "btn">注册</a>
			<?php else: ?>
			<a href="<?php echo U('account/');?>"     class="btn">设置</a>
			<a href="<?php echo U('account/logout');?>" class="btn">注销</a><?php endif; ?>
		</div>
		</div>
	</div>
	
    <div id = "main" class="clearfix">
    
	<div id = "nav" class="clearfix">
		<div id = "nav_menu">
			<a href = "__APP__" class = "btn" id = "nav_home"><div>首页</div></a>
			<?php if(empty($self)): ?><a href = "<?php echo U('account/login');?>" class = "btn" id = "nav_account"><div>个人主页</div></a>
			<?php else: ?>
			<a href = "<?php echo NoticeUrl::getAccount($self);?>" class = "btn" id = "nav_account"><div>个人主页</div></a><?php endif; ?>
			<a href = "<?php echo U('browse/');?>" class = "btn" id = "nav_browse"><div>活动回顾</div></a>
		</div>
		<div id = "search">
			<form  action="<?php echo U('browse/');?>" method="get">
				<input type="text" name="q" value="" id="searchtext"/>
				<input type="submit" id = "go" name="submit" value=""/>
			</form>
		</div>
	</div>
  <div id="page" class="clearfix sunye">




<div class="section-top">
  <ul class="nav clearfix">
    <li class="formytake"><a href="#mytake">参加的活动</a></li>
    <li class="formywish"><a href="#mywish">感兴趣的活动</a></li>
    <li class="formycreate"><a href="#mycreate">发起的活动</a></li>
  </ul>
  <div class="content clearfix">
    <div class="col-main">
    <div class="main-wrap">
      <ul id="mytake" class="clearfix">
        <?php if(is_array($mymark)): $i = 0; $__LIST__ = $mymark;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): ++$i;$mod = ($i % 2 )?><li class = "item clearfix">
          <a href="<?php echo U("event/$vo[id]");?>">  
            <img src = "<?php echo NoticeUrl::getEventPoster($vo['img'],'m');?>" width="100" height="100" />
            <p class="title">
              <?php echo ($vo["title"]); ?>
            </p>
            <p><?php echo (substr($vo["time_start"],5,11)); ?></p>
          </a>
        </li><?php endforeach; endif; else: echo "" ;endif; ?>
      </ul>
      <ul id="mywish" class="clearfix">
        <?php if(is_array($mywish)): $i = 0; $__LIST__ = $mywish;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): ++$i;$mod = ($i % 2 )?><li class = "item clearfix">
          <a href="<?php echo U("event/$vo[id]");?>">  
            <img src = "<?php echo NoticeUrl::getEventPoster($vo['img'],'m');?>" width="100" height="100" />
            <p class="title">
              <?php echo ($vo["title"]); ?>
            </p>
            <p><?php echo (substr($vo["time_start"],5,11)); ?></p>
          </a>
        </li><?php endforeach; endif; else: echo "" ;endif; ?>
      </ul>

      <ul id="mycreate" class="clearfix">
        <?php if(is_array($mycreate)): $i = 0; $__LIST__ = $mycreate;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): ++$i;$mod = ($i % 2 )?><li class = "item clearfix">
          <a href="<?php echo U("event/$vo[id]");?>">  
            <img src = "<?php echo NoticeUrl::getEventPoster($vo['img'],'m');?>" width="100" height="100" />
            <p class="title">
              <?php echo ($vo["title"]); ?>
            </p>
            <p><?php echo (substr($vo["time_start"],5,11)); ?></p>
          </a>
        </li><?php endforeach; endif; else: echo "" ;endif; ?>
      </ul>
    </div>
    </div>
    <div class="col-sub">
      <div style="margin:20px auto; position:relative;">
        <a href="<?php echo NoticeUrl::getAccount($user);?>" style="cursor:pointer;">
        <img src="<?php echo NoticeUrl::getPhoto($user['uid']);?>" style="width:75px; height:75px;"/>
        </a>
        <div style="position:absolute;left:80px; top:-10px;">
        <a href="<?php echo NoticeUrl::getAccount($user);?>" style="cursor:pointer;"><br/>
        <?php echo ($user["name"]); ?>
        </a>
        <div style="color:#444"><?php echo ($user["signature"]); ?></div>
        </div>
      </div>
      <div class="menu" style="display:none;">
        <button style="padding:5px 10px;">关注TA</button>
      </div>
      
    </div>
  </div>
</div>
<div class="col-main">
<div class="main main-wrap">
  <h2>
    世界线
  </h2>

</div>
</div>
<div class="main col-sub">
  <div id = "friend">
    <h2>
      好友列表
    </h2>
    <ul id = "friends" class = "undertitle clearfix">
      <?php if(is_array($friends)): $i = 0; $__LIST__ = $friends;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): ++$i;$mod = ($i % 2 )?><li>
        <a href="<?php echo NoticeUrl::getAccount($vo.friendid);?>">
        <img src="<?php echo NoticeUrl::getPhoto($vo.friendid);?>"/><br/>
        <?php echo ($vo["username"]); ?>
        </a>
      </li><?php endforeach; endif; else: echo "" ;endif; ?>
    </ul>
  </div>
</div>
 
    </div>
    <div id = "footer">
    </div>
  </div>
  <div id="dock">
  <div class="main-wrap">
    <?php if(empty($self)): ?><a id="dock_login" href = "<?php echo U('/account/login');?>" class = "navtopy">登录</a>
    | <a id="dock_alert" href="<?php echo U('/alert/');?>" class="navtopy">系统消息</a>
    | <a id="dock_register" href = "<?php echo U('/account/register');?>" class = "navtopy">注册</a>
    <?php else: ?>
    <a id="dock_account" href="<?php echo NoticeUrl::getAccount($self);?>"><?php echo ($self["name"]); ?></a>
    | <a id="dock_setting" href="<?php echo U('Home-account/');?>" class="navtopy">设置</a>
    <!--| <a id="dock_pm" href="<?php echo U('Home-pm/');?>" class="navtopy">短信</a>  TODO-->
    | <a id="dock_alert" href="<?php echo U('/alert/');?>" class="navtopy">系统消息</a>
    | <a id="dock_logout" href="<?php echo U('/account/logout');?>" class="navtopy">注销</a><?php endif; ?>
  </div>
  <script type="text/javascript">
    $(document).ready(function(){
      NoticeDock.get({
        uid:  "<?php echo ($self["uid"]); ?>",
        username: "<?php echo ($self["name"]); ?>"
      });
    });
  </script>
</div>
</body>
</html>